package cn.itsource.pethome.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@ToString //相当于重写toString方法
@AllArgsConstructor //相当于全参构造器
@NoArgsConstructor //相当于无参构造器
@Table(name = "t_user")
@ApiModel(description = "用户表表对应实体类")
public class User extends  BaseDomain{

    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "盐值")
    @Column(name="salt")
    private Long salt;
    @ApiModelProperty(value = "密码")
    @Column(name="")
    private String password;
    @ApiModelProperty(value = "状态(0表示正常,1表示禁用)")
    private String state;
    @ApiModelProperty(value = "年龄")
    @Column(name="age")
    private String age;
    @ApiModelProperty(value = "创建时间")
    @Column(name="createtime")
    private String createTime;
    @ApiModelProperty(value = "头像路径")
    @Column(name="headImg")
    private String headImg;


}
